﻿@{
    ViewBag.Title = "登录";
    var msg = ViewBag.msg as string;
}




<form class="layui-form" action="" method="post">
    @if (!string.IsNullOrEmpty(msg))
    {
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block" style="        line-height: 36px;
        color: red;">
                @msg
            </div>

        </div>
    }

    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-inline">
            <input type="text" name="username" lay-verify="required" autocomplete="off" lay-reqtext="用户名是必填项，岂能为空？" placeholder="请输入标题" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline">
            <input type="password" name="password" lay-verify="required" lay-reqtext="密码是必填项，岂能为空？" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
